package cn.example.backstage.costmanagement.service.impl;

import cn.example.backstage.costmanagement.mapper.CostManagementMapper;
import cn.example.backstage.costmanagement.pojo.dto.PurchaseRecordsQuery;
import cn.example.backstage.costmanagement.pojo.vo.PurchaseRecordsVO;
import cn.example.backstage.costmanagement.service.CostManagementService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class CostManagementServiceImpl implements CostManagementService {

    @Autowired
    private CostManagementMapper costManagementMapper;

    @Override
    public List<PurchaseRecordsVO> selectOutpatientConsumption(PurchaseRecordsQuery purchaseRecordsQuery) {
        log.debug("查询门诊消费记录:{}",purchaseRecordsQuery);
        List<PurchaseRecordsVO> list = costManagementMapper.selectOutpatientConsumption(purchaseRecordsQuery);
        log.debug("查询门诊消费记录:{}",list);
        return list;
    }
}
